﻿using System;

namespace TightCouplingSample
{

    //学校
    class Program
    {
        static void Main(string[] args)
        {
            // 行为的请求者和行为的实现者之间呈现一种紧耦合关系           
            Receiver studentReceiver = new Receiver();
            studentReceiver.DisinfectClassroom();
        }
    }

    //学生
    public class Receiver
    {
        // 操作
        public void DisinfectClassroom()
        {
            Console.WriteLine("消毒教室");
        }
    }
}
